package gwt.immunology.client.view;

import gwt.immunology.shared.utils.ImmunologyUtils;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;

public class AppLayout extends Composite {

    private static AppLayoutUiBinder uiBinder = GWT.create(AppLayoutUiBinder.class);

    interface AppLayoutUiBinder extends UiBinder<Widget, AppLayout> {
    }

    @UiField
    SimplePanel appContent;

    public AppLayout() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    public SimplePanel getAppContentHolder() {
        this.appContent.setHeight(ImmunologyUtils.getClientWindowFreeSpacePx());
        return this.appContent;
    }

}
